package com.springboot.user.service.impl;

import com.springboot.framework.mvc.service.BaseServiceImpl;
import com.springboot.user.entity.User;
import com.springboot.user.mapper.UserMapper;
import com.springboot.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/*@Cacheable*///redis二级缓存
@Service
public class UserServiceImpl extends BaseServiceImpl<User,UserMapper> implements UserService{

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> getUsers(User user) {
        return userMapper.getUsers(user);
    }

    @Override
    public User getUserByOpenId(String openId) {
        return userMapper.getUserByOpenId(openId);
    }
}
